package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class ProductStock {
    private Long id;

    private String sn;      //商品编号


    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date inputTime;     //入库时间



    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lastCheckTime; //上次盘点时间

    private String remark;  //备注

    private BigDecimal number;    //库存数量

    private BigDecimal amountPrice; //小计


    private BigDecimal receipts;      //实收

    private BigDecimal costPrice;     //单价

    private BigDecimal reviseNumber;    //修改的数值

    private BigDecimal outNumber;   //调入数量

    private Supplier supplier;    //供应商
    private Product product;    //商品
    private Depot depot;        //仓库
    private Operator operator;  //操作员


}